package com.gitee.xqxyxchy;

import java.io.IOException;

import org.slf4j.Logger;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration;
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

@EnableDiscoveryClient
@SpringBootApplication
@EnableAutoConfiguration(exclude={
		DataSourceAutoConfiguration.class, 
		HibernateJpaAutoConfiguration.class, 
		DataSourceTransactionManagerAutoConfiguration.class
		})
public class GatewayApplication {
	
	private static final Logger LOGGER = org.slf4j.LoggerFactory.getLogger(GatewayApplication.class);
	
	public static void main(String[] args) throws IOException {
		try {
			SpringApplication.run(GatewayApplication.class, args);
		}
		catch (Exception e) {
			LOGGER.error(e.getMessage(), e);
		}
	}

}
